//
//  UIButton+Extension.h
//  penzer
//
//  Created by caiyc on 2018/11/19.
//  Copyright © 2018年 caiyc. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, BZButtonImageStyle){
    BZButtonImageStyleTop = 0,  //图片在上，文字在下
    BZButtonImageStyleLeft,     //图片在左，文字在右
    BZButtonImageStyleBottom,   //图片在下，文字在上
    BZButtonImageStyleRight     //图片在右，文字在左
};
@interface UIButton (Extension)
/**
 设置button的imageView和titleLabel的布局样式及它们的间距
 
 @param style imageView和titleLabel的布局样式
 @param space imageView和titleLabel的间距
 */
- (void)layoutButtonWithImageStyle:(BZButtonImageStyle)style
                 imageTitleToSpace:(CGFloat)space;
@end

NS_ASSUME_NONNULL_END
